﻿<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="icon" href="~/favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="~/favicon.ico" type="image/x-icon" />
    <link rel="apple-touch-icon" href="~/favicon.png" />
    <title>后台管理</title>
    <link href="../lib/sweetalert2/sweetalert2.css" rel="stylesheet" />
    <script language="javascript">
        function fun() {
            swal({
                title: '确定删除吗？',
                text: '你将无法恢复它！',
                type: 'warning',
                showCancelButton: true,
                confirmButtonColor: '#3085d6',
                cancelButtonColor: '#d33',
                confirmButtonText: '确定删除！',
                cancelButtonText: '取消删除！',
                confirmButtonClass: 'btn btn-success',
                cancelButtonClass: 'btn btn-danger',
                buttonsStyling: false
            }).then(function () {
                swal(
                    '已删除！',
                    '你的文件已经被删除。',
                    'success'
                );
            }, function (dismiss) {
                // dismiss的值可以是'cancel', 'overlay',
                // 'close', 'timer'
                if (dismiss === 'cancel') {
                    swal(
                        '已取消！',
                        '你的虚拟文件是安全的:)',
                        'error'
                    );
                }
            })
        }




/**/</script>
</head>
<body>
    <button id="aaa" value="aaa" onclick="fun()">aaa</button>
    <script src="../lib/jquery/jquery.js"></script>
    <script src="../lib/sweetalert2/sweetalert2.js"></script>
</body>
</html>